/**
 * PackAlertServiceImpl.java
 * Created at 2017-10-18
 * Created by zhanghailin
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.monitor.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.broadtext.common.bean.EntityPageBean;
import com.broadtext.common.exp.DaoException;
import com.broadtext.common.repository.EntityDao;
import com.broadtext.common.service.impl.EntityServiceImpl;
import com.broadtext.rms.monitor.dao.IPackAlertDao;
import com.broadtext.rms.monitor.model.PackAlertView;
import com.broadtext.rms.monitor.service.IPackAlertService;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;

/**
 * <p>ClassName: PackAlertServiceImpl</p>
 * <p>Description: 电池报警信息服务类</p>
 * <p>Author: zhanghailin</p>
 * <p>Date: 2017-10-18</p>
 */
@Service("packAlertService")
public class PackAlertServiceImpl extends EntityServiceImpl<PackAlertView> implements IPackAlertService{
    
    @Autowired
    @Qualifier("packAlertDao")
    public void setEntityDao(EntityDao<PackAlertView> entityDao) {
        super.entityDao = entityDao;
    }
    
    /**
     * 注入电池报警信息Dao
     */
    @Autowired
    @Qualifier("packAlertDao")
    private IPackAlertDao packAlertDao;
    
    @Override
    public EntityPageBean<PackAlertView> findEntityPage(Map<String, Object> query, PageBounds pageBounds) throws DaoException{
        return entityDao.findEntityPageByQuery("com.broadtext.rms.monitor.model.TtPackAlert.findPackAlertInfoList", query, pageBounds);
    }

}
